
/**
** \file       my_42sh.h
**
** \brief      Everything begins somewhere. Our 42sh project starts here.
**             The command line is parsed and the shell starts depending on it.
**
** \authors    Ben M'rad Hanna, Boillot Ulysse, De Oliveira Guillaume,
**             Laterem Hamza and Nguyen Viet Dung work together for 5 weeks
**             on this project.
**
** \version    0.8
**
** \date       25 November 2010
**
*/

#ifndef MY_42SH_H_
# define MY_42SH_H_

# include <libgen.h>
# include <string.h>
# include <unistd.h>
# include <stdio.h>
# include <fcntl.h>

# include "readline/prompt.h"
# include "readline/read_my_line.h"
# include "options_parser.h"
# include "exec_cmdline.h"

/**
** \fn         int             bad_opt(char   *name)
**
** \brief      bad_opt writes an error message on the error output if
**             42sh does not support the command line given.
**
** \param      the name of the binary producted by our project is given
**             as argument to give a more explicit error message.
**
** \return     bad_opt returns 1, meaning something did wrong.
**
*/

int             bad_opt(char   *name);

#endif /* !MY_42SH_H_ */
